"""
多继承
"""
class Base:
    def test_base(self):
        print("Base test...")

    def say(self):
        print("Base")

class A(Base):
    def test_a(self):
        print("A test...")

    def say(self):
        print("A")

class B(Base):
    def test_b(self):
        print("B test...")

    def say(self):
        print("")

class C(A, B):
    """
    继承A 和 B
    """
    pass

c = C()
c.test_base()
c.test_a()
c.test_b()
c.say()

# C的继承顺序，如果C 没有再按照下面顺序去找
print(C.__mro__)
# (<class '__main__.C'>, <class '__main__.A'>, <class '__main__.B'>, <class '__main__.Base'>, <class 'object'>)
